home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Libraries / Mail / Includes / UMailingApplication.h < prev   
Encoding:
Text File  |  1996-04-03  |  1.8 KB  |  74 lines  |  [TEXT/MPS ]

  1. // UMailingApplication.h
  2. // Copyright © 1984-96 by Apple Computer, Inc. All rights reserved.
  3.  
  4. #ifndef __UMAILINGAPPLICATION__
  5. #define __UMAILINGAPPLICATION__
  6.  
  7. #if qPowerTalk
  8.  
  9. // MacApp
  10.  
  11. #ifndef __UAPPLICATION__
  12. #include "UApplication.h"
  13. #endif
  14.  
  15. #ifndef __UMAILABLE__
  16. #include "UMailable.h"
  17. #endif
  18.  
  19. //----------------------------------------------------------------------------------------
  20. // Forward and external class declarations. 
  21. //----------------------------------------------------------------------------------------
  22.  
  23. class TAppleEvent;
  24. class TDocument;
  25.  
  26. //========================================================================================
  27. // CLASS TMailingApplication
  28. //========================================================================================
  29.  
  30. class TMailingApplication : public TApplication,
  31.                             public MMailing
  32. {
  33.  
  34.     MA_DECLARE_CLASS;
  35.  
  36. public:
  37.  
  38.     TMailingApplication();
  39.         // Constructor
  40.         
  41.     ~TMailingApplication();
  42.         // Destructor
  43.         
  44.     void IMailingApplication(OSType itsMainFileType,
  45.                                 OSType itsMailType,
  46.                                 OSType itsCreator);
  47.         // Initialization method for TMailingApplication.
  48.     
  49.     virtual void DoMenuCommand(CommandNumber aCommandNumber);
  50.         // Handles the application specific menu commands.
  51.  
  52.     virtual void DoSetupMenus();
  53.  
  54.     virtual void DoToolboxEvent(TToolboxEvent* event);
  55.  
  56.     virtual TDocument* OpenOld(CommandNumber itsOpenCommand, TList* aFileList);
  57.  
  58.     virtual void GetFileTypeList(CommandNumber itsCommandNumber,
  59.                                         TypeListHandle& typeList);
  60.  
  61.     virtual void DoAECreateElement(TAppleEvent* message,
  62.                                    TAppleEvent* reply);
  63.                                    
  64.     virtual void Idle(IdlePhase phase);
  65.     
  66.     virtual void DoScriptCommand(CommandNumber    aCommandNumber,
  67.                                   TAppleEvent*     message,
  68.                                   TAppleEvent*     reply);
  69. };
  70.  
  71. #endif // qPowerTalk
  72.  
  73. #endif // __UMAILINGAPPLICATION__
  74.